CC = g++

CXXFLAGS = -O2 -Wall -DMAC_HEADER_FILE=\"mac3all-k-residue.h\" -DNEXTVAL=next -DCHOOSENEXTVAR=DD -DPRUNE=pruneNone -DVR=noPruneNext  -DUSEAC311
OBJECTS = testMAC3all-k-residue.o backtracking.o next_variable.o mac3all-k-residue.o residues.o csp_base.o urbcsp.o resourcesUsageCounter.o bsupport.o

csp.out: $(OBJECTS)
	$(CC) $(CXXFLAGS) $(OBJECTS) -o csp.out
backtracking.o: backtracking.cpp backtracking.h mac3all.h
	$(CC) -c $(CXXFLAGS) $< -o $@
%.o: %.cpp %.h
	$(CC) -c $(CXXFLAGS) $< -o $@ 
